﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage_Inicial.Master"
    AutoEventWireup="true" CodeBehind="CadastroEmpresa.aspx.cs" Inherits="Manager.Formularios_Cadastro.CadastroEmpresa1" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btCancelar" EventName="Click"></asp:AsyncPostBackTrigger>
            <asp:AsyncPostBackTrigger ControlID="btEditar" EventName="Click"></asp:AsyncPostBackTrigger>
            <asp:AsyncPostBackTrigger ControlID="btSalvar" EventName="Click"></asp:AsyncPostBackTrigger>
            <asp:AsyncPostBackTrigger ControlID="txtCep" EventName="Unload" />
        </Triggers>
        <ContentTemplate>
            <table style="width: 100%; background: white;" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="left" valign="middle" style="padding-left: 5px; background-image: url('/Layout/Layout_Topicos_Teste.png');
                        background-repeat: repeat-x; width: 100%; height: 30px;">
                        <asp:Label ID="Label3" runat="server" Font-Size="Medium" ForeColor="#333333" Text="Dados de Sua Empresa"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table>
                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td>
                                                <asp:TextBox ID="txtNomeFantasia" runat="server" BorderColor="Red" BorderStyle="Solid"
                                                    BorderWidth="2px" CssClass="nonwatermarked" Font-Names="Calibri" Font-Size="16px"
                                                    Height="18px" Width="250px" Enabled="False"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidatorNomeFantasia" runat="server"
                                                    ErrorMessage="O campo deve ser preenchido!" Display="None" ControlToValidate="txtNomeFantasia">
                                                </asp:RequiredFieldValidator>
                                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtNomeFantasia"
                                                    WatermarkText="Razão Social" WatermarkCssClass="watermarked" Enabled="True">
                                                </asp:TextBoxWatermarkExtender>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtEmpresa" runat="server" BorderColor="Red" BorderStyle="Solid"
                                                    BorderWidth="2px" CssClass="nonwatermarked" Font-Names="Calibri" Font-Size="16px"
                                                    Height="18px" Width="250px" Enabled="False"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="txtEmpresa_RequiredFieldValidator" runat="server"
                                                    ErrorMessage="O campo deve ser preenchido!" Display="None" ControlToValidate="txtEmpresa">
                                                </asp:RequiredFieldValidator>
                                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtenderEmpresa" runat="server"
                                                    TargetControlID="txtEmpresa" WatermarkText="Nome Empresa" WatermarkCssClass="watermarked"
                                                    Enabled="True">
                                                </asp:TextBoxWatermarkExtender>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table cellpadding="0">
                                        <tr>
                                            <td>
                                                <asp:TextBox ID="txtCep" runat="server" BorderColor="Red" BorderStyle="Solid" BorderWidth="2px"
                                                    CssClass="nonwatermarked" Font-Names="Calibri" Font-Size="16px" Height="18px"
                                                    Width="90px" AutoPostBack="True" Enabled="False"></asp:TextBox>
                                                <asp:MaskedEditExtender ID="txtCep_MaskedEditExtender" runat="server" Mask="99.999-999"
                                                    TargetControlID="txtCep">
                                                </asp:MaskedEditExtender>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidatorCep" runat="server" ErrorMessage="O campo deve ser preenchido!"
                                                    Display="None" ControlToValidate="txtCep">
                                                </asp:RequiredFieldValidator>
                                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtenderCep" runat="server" TargetControlID="txtCep"
                                                    WatermarkText="Cep" WatermarkCssClass="watermarked" Enabled="True">
                                                </asp:TextBoxWatermarkExtender>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtEndereco" runat="server" BorderColor="Red" BorderStyle="Solid"
                                                    BorderWidth="2px" CssClass="nonwatermarked" Font-Names="Calibri" Font-Size="16px"
                                                    Height="18px" Width="298px" Enabled="False"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidatorEndereco" runat="server" ErrorMessage="O campo deve ser preenchido!"
                                                    Display="None" ControlToValidate="txtEndereco">
                                                </asp:RequiredFieldValidator>
                                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtenderEndereco" runat="server"
                                                    TargetControlID="txtEndereco" WatermarkText="Endereço" WatermarkCssClass="watermarked"
                                                    Enabled="True">
                                                </asp:TextBoxWatermarkExtender>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtNumero" runat="server" BorderColor="Red" BorderStyle="Solid"
                                                    BorderWidth="2px" CssClass="nonwatermarked" Font-Names="Calibri" Font-Size="16px"
                                                    Height="18px" Width="70px" Enabled="False"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidatorNumero" runat="server" ErrorMessage="O campo deve ser preenchido!"
                                                    Display="None" ControlToValidate="txtNumero">
                                                </asp:RequiredFieldValidator>
                                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtenderNumero" runat="server"
                                                    TargetControlID="txtNumero" WatermarkText="Número" WatermarkCssClass="watermarked"
                                                    Enabled="True">
                                                </asp:TextBoxWatermarkExtender>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtBairro" runat="server" BorderColor="Red" BorderStyle="Solid"
                                                    BorderWidth="2px" CssClass="nonwatermarked" Font-Names="Calibri" Font-Size="16px"
                                                    Height="18px" Width="155px" Enabled="False"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidatorBairro" runat="server" ErrorMessage="O campo deve ser preenchido!"
                                                    Display="None" ControlToValidate="txtBairro">
                                                </asp:RequiredFieldValidator>
                                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtenderBairro" runat="server"
                                                    TargetControlID="txtBairro" WatermarkText="Bairro" WatermarkCssClass="watermarked"
                                                    Enabled="True">
                                                </asp:TextBoxWatermarkExtender>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtCidade" runat="server" BorderColor="Red" BorderStyle="Solid"
                                                    BorderWidth="2px" CssClass="nonwatermarked" Font-Names="Calibri" Font-Size="16px"
                                                    Height="18px" Width="155px" Enabled="False"></asp:TextBox>
                                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtenderCidade" runat="server"
                                                    TargetControlID="txtCidade" WatermarkText="Cidade" WatermarkCssClass="watermarked"
                                                    Enabled="True">
                                                </asp:TextBoxWatermarkExtender>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtUf" runat="server" BorderColor="Red" BorderStyle="Solid" BorderWidth="2px"
                                                    CssClass="nonwatermarked" Font-Names="Calibri" Font-Size="16px" Height="18px"
                                                    Width="25px" Enabled="False"></asp:TextBox>
                                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtenderUf" runat="server" TargetControlID="txtUf"
                                                    WatermarkText="UF" WatermarkCssClass="watermarked" Enabled="True">
                                                </asp:TextBoxWatermarkExtender>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td style="padding: 1px;">
                                    <asp:TextBox ID="txtObservacao" runat="server" BorderColor="Red" BorderStyle="Solid"
                                        BorderWidth="2px" CssClass="nonwatermarked" Font-Names="Calibri" Font-Size="16px"
                                        Height="18px" Width="500px" Enabled="False"></asp:TextBox>
                                    <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server" TargetControlID="txtObservacao"
                                        WatermarkText="Complemento" WatermarkCssClass="watermarked" Enabled="True">
                                    </asp:TextBoxWatermarkExtender>
                                </td>
                            </tr>
                        </table>
                        <table>
                            <tr>
                                <td>
                                    <asp:ImageButton ID="btSalvar" runat="server" ImageUrl="~/Botao/Componentes/Salvar_Desabilitado.png"
                                        Enabled="False" />
                                </td>
                                <td>
                                    <asp:ImageButton ID="btEditar" runat="server" ImageUrl="~/Botao/Componentes/Editar.png"
                                        OnClick="btEditar_Click" />
                                </td>
                                <td>
                                    <asp:ImageButton ID="btCancelar" runat="server" ImageUrl="~/Botao/Componentes/Cancelar_Desabilitado.png"
                                        Enabled="False" OnClick="btCancelar_Click" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
